package org.travel.api.travel.pojo;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.io.Serializable;
import java.sql.Date;
import java.util.Objects;

@Entity
public class Flights implements Serializable {
    private Integer flightsid;
    private String model;
    private Date flightDate;
    private Integer companyid;
    private String type;
    private Integer takeoffAirportId;
    private Integer landingAirportId;
    private Date takeoffTime;
    private Date landingTime;
    private String flightTime;
    private String stopAirport;
    private Integer votes;
    private Integer dicid;
    private String flightsImg;
    private String flightsOtherImg;
    private String flightSm;
    private Integer price;


    @Basic
    @Column(name = "price", nullable = false, length = 50)
    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    @Id
    @Column(name = "flightsid", nullable = false)
    public Integer getFlightsid() {
        return flightsid;
    }

    public void setFlightsid(Integer flightsid) {
        this.flightsid = flightsid;
    }

    @Basic
    @Column(name = "model", nullable = false, length = 50)
    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    @Basic
    @Column(name = "flightDate", nullable = false)
    public Date getFlightDate() {
        return flightDate;
    }

    public void setFlightDate(Date flightDate) {
        this.flightDate = flightDate;
    }

    @Basic
    @Column(name = "companyid", nullable = false)
    public Integer getCompanyid() {
        return companyid;
    }

    public void setCompanyid(Integer companyid) {
        this.companyid = companyid;
    }

    @Basic
    @Column(name = "type", nullable = false, length = 50)
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Basic
    @Column(name = "takeoffAirportId", nullable = false)
    public Integer getTakeoffAirportId() {
        return takeoffAirportId;
    }

    public void setTakeoffAirportId(Integer takeoffAirportId) {
        this.takeoffAirportId = takeoffAirportId;
    }

    @Basic
    @Column(name = "landingAirportId", nullable = false)
    public Integer getLandingAirportId() {
        return landingAirportId;
    }

    public void setLandingAirportId(Integer landingAirportId) {
        this.landingAirportId = landingAirportId;
    }

    @Basic
    @Column(name = "takeoffTime", nullable = false)
    public Date getTakeoffTime() {
        return takeoffTime;
    }

    public void setTakeoffTime(Date takeoffTime) {
        this.takeoffTime = takeoffTime;
    }

    @Basic
    @Column(name = "landingTime", nullable = false)
    public Date getLandingTime() {
        return landingTime;
    }

    public void setLandingTime(Date landingTime) {
        this.landingTime = landingTime;
    }

    @Basic
    @Column(name = "flightTime", nullable = false, length = 50)
    public String getFlightTime() {
        return flightTime;
    }

    public void setFlightTime(String flightTime) {
        this.flightTime = flightTime;
    }

    @Basic
    @Column(name = "stopAirport", nullable = true, length = 50)
    public String getStopAirport() {
        return stopAirport;
    }

    public void setStopAirport(String stopAirport) {
        this.stopAirport = stopAirport;
    }

    @Basic
    @Column(name = "Votes", nullable = true)
    public Integer getVotes() {
        return votes;
    }

    public void setVotes(Integer votes) {
        this.votes = votes;
    }

    @Basic
    @Column(name = "dicid", nullable = true)
    public Integer getDicid() {
        return dicid;
    }

    public void setDicid(Integer dicid) {
        this.dicid = dicid;
    }

    @Basic
    @Column(name = "flightsImg", nullable = false, length = 255)
    public String getFlightsImg() {
        return flightsImg;
    }

    public void setFlightsImg(String flightsImg) {
        this.flightsImg = flightsImg;
    }

    @Basic
    @Column(name = "flightsOtherImg", nullable = false, length = 255)
    public String getFlightsOtherImg() {
        return flightsOtherImg;
    }

    public void setFlightsOtherImg(String flightsOtherImg) {
        this.flightsOtherImg = flightsOtherImg;
    }

    @Basic
    @Column(name = "flightSM", nullable = false, length = 255)
    public String getFlightSm() {
        return flightSm;
    }

    public void setFlightSm(String flightSm) {
        this.flightSm = flightSm;
    }

}
